<?
require("includes/constants.php");
require("includes/funciones.inc.php");

session_start();
if(!isset($_SESSION['nombreUsuario']))
	exit();

?>
<form id="recibosPopForm" name="recibosPopForm" method="post">
	<div class="input-group">
		<span class="input-group-addon">Fecha</span>
 		<input id="fecha" name="fecha" type="text" class="form-control">
	</div>
	<div class="input-group">
  		<span class="input-group-addon">Cliente</span>
  		<input id="cliente" name="cliente" type="text" class="form-control">
	</div>
	<div class="input-group">
  		<span class="input-group-addon">Descripci&oacute;n</span>
  		<input id="descripcion" name="descripcion" type="text" class="form-control">
	</div>
	<div class="input-group">
  		<span class="input-group-addon">Importe</span>
  		<input id="importe" name="importe" type="text" class="form-control numeric">
  		<span class="input-group-addon">$</span>
	</div>
	<table id="dt_detalleCobro" class="display">
		<thead>
			<tr>
				<th>Acci&oacute;n</th>
				<th>Descripci&oacute;n</th>
				<th>Importe</th>
			</tr>
	    </thead>
	    <tbody>
	    	<tr>
	    		<td colspan="3" class="dataTables_empty">Cargando Datos</td>
	    	</tr>
		</tbody>
	</table>
	<button type="button" class="btn btn-primary" name="btnAgregarItemCobro" id="btnAgregarItemCobro">Agregar</button>
	<br/>
	<br/>	
	<table id="dt_retenciones" class="display">
		<thead>
			<tr>
				<th>Acci&oacute;n</th>
				<th>Categoria</th>
				<th>Fecha Retenci&oacute;n</th>
				<th>Descripci&oacute;n Retenci&oacute;n</th>
				<th>N&uacute;mero</th>
				<th>Base Imponible</th>
				<th>Importe</th>
			</tr>
	    </thead>
	    <tbody>
	    	<tr>
	    		<td colspan="7" class="dataTables_empty">Cargando Datos</td>
	    	</tr>
		</tbody>
	</table>
	<button type="button" class="btn btn-primary" name="btnAgregarItemRetencion" id="btnAgregarItemRetencion">Agregar</button>
	<br/>
	<div class="btn-toolbar" style="padding-top: 10px; float: right;">
	  	<button type="button" class="btn btn-primary" name="btnGuardar" id="btnGuardar">Guardar</button>
	  	<button type="button" class="btn btn-primary" name="btnCerrar" id="btnCerrar">Cerrar</button>
	</div>
</form>

<!-- PopUp Pedidos Item Dialog -->
<div id="recibosItemCobroDialog"></div>
<div id="recibosItemRetencionDialog"></div>

<script>
	$(document).ready(function() {
		$_initPop();
	});
</script>